package com.lizhen.core.basicdatatype;

public class StringDataType {
    public static void main(String[] args) {
        char[] chars = {1, 2, 3};
        String s1 = new String(chars);
        String s12 = new Integer(100).toString();
        String s13 = String.valueOf(100);
        String s14 = "1111";
        String S15 = new StringBuilder().append("123").toString();
        String S16 = new StringBuffer().append("123").toString();
        Integer i1 = Integer.parseInt(new String("100"));
        String s2 = "123";
        s2.length();
        String s3 = "12";
        String s32 = "34";
        s3.concat(s32);
        String s33 = s3 + s32;
        String s34 = String.format("%s", s3 + s32);
        String s4 = "123";
        s4.trim();
        String s5 = "123";
        s5.substring(1);
        s5.substring(1, 2);
        String s6 = "123";
        s6.charAt(1);
        String s7 = "123";
        s7.indexOf("2");
    }
}
